home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000182_fdc@watsun.cc.columbia.edu_Thu May 24 13:57:29 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
4KB
|
97 lines
Article: 12483 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: zmodem problem
Date: 24 May 2001 17:57:20 GMT
Organization: Columbia University
Lines: 80
Message-ID: <9eji20$kjo$1@newsmaster.cc.columbia.edu>
References: <vOyO6.2574$gA.1009512@monger.newsread.com> <9eeitl$flc$1@newsmaster.cc.columbia.edu> <tibP6.3057$gA.1129282@monger.newsread.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 990727040 21112 128.59.39.2 (24 May 2001 17:57:20 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 24 May 2001 17:57:20 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12483
In article <tibP6.3057$gA.1129282@monger.newsread.com>,
Glenn Sherman <gsherman@remove_this.m20.net> wrote:
: "Frank da Cruz" <fdc@watsun.cc.columbia.edu> wrote in message
: news:9eeitl$flc$1@newsmaster.cc.columbia.edu...
: > In article <vOyO6.2574$gA.1009512@monger.newsread.com>,
: > Glenn Sherman <gsherman@remove_this.m20.net> wrote:
: > : Begin Xfer file1.txtRetry 0: Awaiting pathname nak for file1.txt
: > : 0 ZMODEM A serial connection might still be active on /dev/ser2.
: > : OK to exit? ok
: > : I know what the active serial connection warning is...
: > :
: > In case others don't, it's because the SEND command completed, and the
: > next command is EXIT. Normally you'd want to put IF FAIL after the SEND
: > command so you could take some kind of error recovery or notification
: > action.
:
: OK, I thought I could fix the active serial connection message, but...
:
: ----- here is part of my script ------------------------------------
: input 20 OTTI.PCS ; get transmit prompt
: if fail exit 1 No transmit prompt
:
: sleep 2
: cd /tmp
: send perrotti.pcs ; send price file
: if fail exit 1 Couldn't send file
:
: sleep 2
: echo
: echo Hanging up the modem connection...
: hangup
: sleep 10
: echo Exiting the script!
: exit 0
:
: ----- here are the results ---------------------------------------
: Begin Xfer PERROTTI.PCSRetry 0: Awaiting pathname nak for perrotti.pcs
: 0 ZMODEM
: Hanging up the modem connection...
: Exiting the script!
: A serial connection might still be active on /dev/ser2.
: OK to exit? ok
: #
: ---------------------------
: The receiving computer is waiting for another file to be sent using zmodem.
: I do not have the second file to send, and their instructions say that I can
: just disconnect after the first file is sent.
: ---------------------------
:
: Is hangup the right command to use? Should I be waiting longer?
:
It's the right command to use. It tells the modem to hang up the phone.
If the modem is configured correctly, it should respond to the HANGUP
command by (a) hanging up the phone, and (b) turning off its CD (Carrier
Detect) signal. But (b) is not happening, which is why Kermit is giving
you the warning. Why is (b) not happening?
. Because (a) is not happening; or:
. Because the modem is configured to keep CD On all the time; or:
. (not likely) Because you have CD and DTR jumpered in your modem cable; or:
. Because the operating system is reporting CD On when it's really Off.
The main thing is to make sure the phone connection is really being hung up.
If it isn't, you could get a big phone bill. Some useful Kermit commands:
SET DIAL DISPLAY ON
Shows interactions between Kermit and the modem.
SHOW COMMUNICATIONS
Displays the current modem signals.
SET MODEM HANGUP-METHOD { RS232, MODEM-COMMAND }
Chooses which technique is to be used for hanging up the modem.
If you're sure the modem is being hung up, but you're still getting the
"OK to exit?" question, you can get rid of it with:
SET EXIT WARNING OFF
- Frank